package com.hos.net.req.consult;

import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.hos.net.req.BaseReq;
import com.hos.net.res.MsgHint;

/**
 * 删除咨询
 * Created by guom on 2018/10/27.
 */
@JsonIgnoreProperties(ignoreUnknown = true)
public class ConsultDeleteReq extends BaseReq {
    public String consultId;
    @JsonIgnore
    public String hint;

    // (false 检验失败)
    @JsonIgnore
    public boolean isVerifyParameter() {
        if (consultId == null || consultId == "") {
            hint = new MsgHint("咨询id不能为空").toJson();
            return false;
        }
        return true;
    }

}
